<?php
/**
 * IQ response
 * 
 * @package stanza.iq
 */
abstract class Zend_Jabber_Stanza_Response_Iq_Abstract extends Zend_Jabber_Stanza_Response_Abstract {
    /**
     * Every thing went fine
     */
    const TYPE_RESULT = 'result';
    
    /**
     * Error type. Error accured when processing response
     */
    const TYPE_ERROR = 'error';
    
    /**
     * Iq node
     * 
     * @var DomElement
     */
    protected $iqNode;
    
    /**
     * Create iq response object
     * 
     * @param DomDocument $dom Response dom object
     * @param integer $id Response message id
     */
    public function __construct(DomDocument $dom, $id) {
        parent::__construct($dom, $id);
        $this->iqNode = $this->dom->getElementsByTagName('iq')->item(0);
    }
}
?>